#include <map>
#include <string>
#include <iostream>
#include <vector>
#include <map>

#include <sys/stat.h>
#include <sys/types.h>

#include <time.h>
#include <QVariant>

using namespace std;

struct FileObj {
  string name;
  time_t tm;
  char enabled;
};

class Pkg {


  public:
  Pkg();
  ~Pkg();

  string GetField(string field);
  void SetField(string c, string f);
  vector<string> ListFields();
  time_t GetLastAccess();

  void SetFile(string filename, char enabled);

  vector<FileObj> GetFiles();
  map<string,string> GetFields();

  bool enabled;

  private:
  map<string, string> infos;

  vector<FileObj> files;



};

Q_DECLARE_METATYPE(Pkg)
